<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="/shop/include :: header"></head>
<body>
	<form class="layui-form" action="" lay-filter="shop_member_address-add-form" style="margin-top: 20px;">
		<input th:value="${session.formToken}" name="formToken" type="hidden" />
		<!--  -->
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">会员ID：</label>
			<div class="layui-input-block">
				<input id="memberId" name="memberId" placeholder="请输入会员ID"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">省：</label>
			<div class="layui-input-block">
				<input id="province" name="province" placeholder="请输入省"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">市：</label>
			<div class="layui-input-block">
				<input id="city" name="city" placeholder="请输入市"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">区：</label>
			<div class="layui-input-block">
				<input id="area" name="area" placeholder="请输入区"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">详细地址：</label>
			<div class="layui-input-block">
				<input id="address" name="address" placeholder="请输入详细地址"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">邮政编码：</label>
			<div class="layui-input-block">
				<input id="postalCode" name="postalCode" placeholder="请输入邮政编码"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">收货人：</label>
			<div class="layui-input-block">
				<input id="receivingName" name="receivingName" placeholder="请输入收货人"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">电话号码：</label>
			<div class="layui-input-block">
				<input id="receivingPhone" name="receivingPhone" placeholder="请输入电话号码"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">是否默认 0：不默认1：默认：</label>
			<div class="layui-input-block">
				<input id="isDefault" name="isDefault" placeholder="请输入是否默认 0：不默认1：默认"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">添加时间：</label>
			<div class="layui-input-block">
				<input id="createTime" name="createTime" placeholder="请输入添加时间"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">修改时间：</label>
			<div class="layui-input-block">
				<input id="updateTime" name="updateTime" placeholder="请输入修改时间"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">启用状态 0：已启用1：未启用：</label>
			<div class="layui-input-block">
				<input id="enableState" name="enableState" placeholder="请输入启用状态 0：已启用1：未启用"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">删除状态 0：未删除1：已删除：</label>
			<div class="layui-input-block">
				<input id="deleteFlag" name="deleteFlag" placeholder="请输入删除状态 0：未删除1：已删除"
					class="layui-input" lay-verify="required" autocomplete="off">
			</div>
		</div>
 		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="shop_member_address-add">立即提交</button>
			</div>
		</div>
	</form>
	<div th:include="/shop/include::footer"></div>
	<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
	<script>
		layui.use([ 'layer', 'jquery', 'form', 'laydate' ], function() {
			var $ = layui.jquery;
			var laydate = layui.laydate;
			var layer = layui.layer;
			var form = layui.form;

			//日期时间选择器
          			laydate.render({
				elem : '#createTime',
				type : 'datetime'
			});
 			laydate.render({
				elem : '#updateTime',
				type : 'datetime'
			});
   			//监听提交
			form.on('submit(shop_member_address-add)', function(data) {
				//提交数据data.field
				ajaxPostLoad("/shop/member_address/save", data.field);
				return false;
			});
		});
	</script>
</body>
</html>